<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2023/4/2
  Time: 10:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>请求参数</title>
</head>
<body>
<h3>小脚本方式</h3>
<%
    request.setCharacterEncoding("utf-8");
    String name = request.getParameter("name");
    String pass = request.getParameter("pass");
    String age = request.getParameter("age");
    String[] love = request.getParameterValues("love");
    out.print("姓名：" + name + "<br/>");
    out.print("密码：" + pass + "<br/>");
    out.print("年龄：" + age + "<br/>");
    out.print("爱好：" + Arrays.toString(love) + "<br/>");
%>
<hr/>
<h3>EL方式</h3>
姓名：${param.name}<br/>
密码：${param.pass}<br/>
年龄：${param.age}<br/>
爱好：${paramValues.love}<br/>
</body>
</html>
